import http from '../utils/request'

const register = function(data){
    return http.post('/api/register',data)
};
const login = function(data){
    return http.post('/api/login',data)
};

const userApi = {
    register,
    login
}

export default userApi